Utility class to retrieve or compute interesting data about textures. More...
Static Public Member Functions | |
| static unsigned int | getFormatByteSize (FORMAT format) |
| static unsigned int | getFormatChannelCount (FORMAT format) |
| static unsigned int | getFormatPlaneCount (FORMAT format) |
| static FORMAT | getFormatSrgbEquivalent (FORMAT format) |
| static FORMAT | getFormatRgbEquivalent (FORMAT format) |
| static FORMAT | getFormatTypelessEquivalent (FORMAT format) |
| static FORMAT | getFormatDepthEquivalent (FORMAT format) |
| static FORMAT | getFormatUncompressedEquivalent (FORMAT format) |
| static FORMAT | getFormatWithAlphaEquivalent (FORMAT format) |
| static bool | isFormatOver255 (FORMAT format) |
| static bool | isFormatCompressed (FORMAT format) |
| static bool | isFormatCompatibleWithStencil (FORMAT format) |
| static bool | isFormatCompatibleForRenderFlag (FORMAT format, TEX_RENDER_FLAG renderFlag, BUFFER_BIND_FLAG bindFlag) |
| static int | getNeededMipsForSize (int width, int height, int depthOrArraySize, bool texArray) |
| static FORMAT | getFormatFromImageFormat (nkImages::PIXEL_FORMAT format) |
Utility class to retrieve or compute interesting data about textures.
|
static |
| format | The format to use. |
|
static |
| format | The format to use. |
|
static |
| format | The format to use. |
| format | The format to use. |
| format | The format to use. |
| format | The format to use. |
| format | The format to use. |
| format | The format to use. |
| format | The format to use. |
|
static |
| format | The format to use. |
|
static |
Checks whether a format is compressed. Compressed formats are usually variants of BC and such.
| format | The format to use. |
|
static |
Checks whether a format is compatible for stencil rendering.
| format | The format to use. |
|
static |
| format | The format to use. |
| renderFlag | The render flag to check against. |
| bindFlag | The binding flag forecast for the texture to use. |
|
static |
| width | The width of the texture. |
| height | The height of the texture. |
| depthOrArraySize | The depth, or array size, of the texture. |
| texArray | Whether the texture is supposed to be an array (true) or not (false). |
|
static |
| format | The nkImages format to convert. |